import { RouteRecordRaw } from 'vue-router'

const lawcaseRoutes: Array<RouteRecordRaw> = [
  {
    path: '/lawcase',
    redirect: '/lawcase/lawcase',
    name: 'Lawcase',
    meta: { title: '案件管理', icon: 'lawcase' },
    children: [
      {
        path: 'lawcase',
        // @ts-ignore - 忽略Vue组件动态导入的类型检查
        component: () => import('@/views/lawcase/Lawcase.vue'),
        name: 'LawcaseList',
        meta: { title: '案件列表', icon: 'lawcase-list' },
      },
      {
        path: 'party',
        // @ts-ignore - 忽略Vue组件动态导入的类型检查
        component: () => import('@/views/lawcase/Party.vue'),
        name: 'LawcaseParty',
        meta: { title: '当事人管理', icon: 'lawcase-party' },
      },
      {
        path: 'progress',
        // @ts-ignore - 忽略Vue组件动态导入的类型检查
        component: () => import('@/views/lawcase/Progress.vue'),
        name: 'LawcaseProgress',
        meta: { title: '案件进度', icon: 'lawcase-progress' },
      },
      {
        path: 'casedoc',
        // @ts-ignore - 忽略Vue组件动态导入的类型检查
        component: () => import('@/views/lawcase/Document.vue'),
        name: 'LawcaseDocument',
        meta: { title: '案件文档', icon: 'lawcase-document' },
      },
      {
        path: 'court',
        // @ts-ignore - 忽略Vue组件动态导入的类型检查
        component: () => import('@/views/lawcase/Court.vue'),
        name: 'LawcaseCourt',
        meta: { title: '法院信息', icon: 'lawcase-court' },
      },
      {
        path: 'casecause',
        // @ts-ignore - 忽略Vue组件动态导入的类型检查
        component: () => import('@/views/lawcase/CaseType.vue'),
        name: 'LawcaseCaseType',
        meta: { title: '案由管理', icon: 'lawcase-type' },
      },
    ],
  },
]

export default lawcaseRoutes
